package com.study.web;

import com.study.service.SimpleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author : wilbur.yuan
 * @date : 2019-02-21
 */
@Slf4j
@SpringBootApplication
public class Starter implements CommandLineRunner {

    @Autowired
    private SimpleService simpleService;

    public static void main(String[] args) {
        SpringApplication.run(Starter.class);
    }

    @Override
    public void run(String... args){
        log.info("#################app started################");
        log.info("===================>simpleServceName: {}", simpleService.getServiceName());
    }
}
